<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>单位信息列表</title>
    <link rel="stylesheet" href="__PUBLIC__/css/person.css">
    <link rel="stylesheet" href="__PUBLIC__/dpa/css/page.css">
    <script src="__PUBLIC__/dpa/js/jquery-2.1.4.js"></script>
    <style>
        button{
            margin-left:50px;
            margin-top:50px;
        }
        td{
            text-align:center;
        }
    </style>
</head>
<body>
<!--加载导航条开始-->
<div class="nav-bar">
    <ul>
        <li class="in"><a href="{:U('Home/Index/menu')}">自定义菜单</a></li>
        <li class="in"><a href="{:U('Home/Upload/upload')}">上传excel</a></li>
        <li class="on"><a href="{:U('Home/Index/unit')}">单位信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/personnel')}">人员信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/schedule')}">dpa数据管理</a></li>
        <li class="in"><a href="{:U('Home/Index/connect')}">交接数据管理</a></li>
        <li  style="background:darkcyan"> <a href="{:U('Home/Index/changepass')}">更改密码</a></li>
        <li style="background:grey"><a href="{:U('Home/Index/unlogin')}">退出登录</a></li>
    </ul>
</div>
<!--加载导航条结束-->
<div class="right-container">
    <h1>单位信息列表<a href="__CONTROLLER__/unitadd" class="add">添加</a></h1>
    <form action="__ACTION__" method="get">
    <p>
        <span style="font-size:16px">条件查询:</span>
        <input type="text" name="requester" value="<?php echo I('get.requester'); ?>"  placeholder="请输入单位名称" >
        <input type="submit" value="查询">
    </p>
    </form>
    <table border="1">
       <tr>
           <th>序号</th>
           <th>委托单位</th>
           <th>单位编码</th>
           <th>单位全称</th>
           <th>备注</th>
           <th>操作</th>
       </tr>
       <foreach name="list" key="key" item="v">
       <tr>
           <td>{$key+1+$first}</td>
           <td>{$v.requester}</td>
           <td>{$v.unitsum}</td>
           <td>{$v.dwname}</td>
           <td>{$v.remark}</td>
           <td>
               <a  href="{:U('unitupd',array('requester'=>$v[requester]))}">更改</a> |
               <a onclick="return confirm('确定要删除吗?');" href="{:U('unitdel',array('requester'=>$v[requester]))}">删除</a>
           </td>
       </tr>
       </foreach>
    </table>
    <div class="green-black">{$page_str}</div>
</div>
</body>
</html>